package com.leapp.sk.ui.activity.classs

import android.os.Bundle
import com.example.mvp.activity.BaseActivityMVP
import com.example.mvp.binder.BaseDataBinder
import com.example.mvp.view.imgselector.model.entity.ImageInfo
import com.leapp.sk.binder.BaseBinder
import com.leapp.sk.util.ShareDialogUtils
import com.leapp.sk.viewdelegate.classs.ClassAlbumPreviewDelegate

/**
 * 班级相册预览
 * @author  chaohaipeng  on 2018/8/7.
 */
class ClassAlbumPreviewActivity : BaseActivityMVP<ClassAlbumPreviewDelegate>(), ShareDialogUtils.SharedListener {
    override fun deleteImage(content: String) {
    }

    override fun sharedToWXFriend(content: String) {
    }

    override fun sharedToWXFriendCircle(content: String) {
    }

    override fun sharedToQQFriend(content: String) {
    }

    override fun downLoad(content: String) {
    }

    override fun initView(p0: Bundle?) {
        viewDelegate.initTobBar(this, this)
    }

    override fun initDate() {
       val data= ArrayList<ImageInfo>()
        for (i in 1..5){
            val imageInfo = ImageInfo()
            imageInfo.path="http://pic.58pic.com/58pic/16/62/63/97m58PICyWM_1024.jpg"
            data.add(imageInfo)
        }

        viewDelegate.initAdapter(this,1,data)
    }

    override fun bindEvenListener() {
    }

    override fun getDelegateClass(): Class<ClassAlbumPreviewDelegate> {
        return ClassAlbumPreviewDelegate::class.java
    }

    override fun getDataBinder(): BaseDataBinder<*, *> {
        return BaseBinder()
    }
}